-- GENERATED SPELL FOR [Greater Ley-Whelp] --


function spell0_28276(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(51243,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28276', 1500, 1)
end

function spell1_28276(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(59215,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28276', 1500, 1)
end

function spell2_28276(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(62249,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28276', 1500, 1)
end

function spell3_28276(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(62250,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28276', 1500, 1)
end

function Sorts_28276(pUnit, Event)
local choix_sorts_28276 = math.random(0, 3)
if choix_sorts_28276 == 0 then
pUnit:RegisterEvent('spell0_28276', 1, 1)
end
if choix_sorts_28276 == 1 then
pUnit:RegisterEvent('spell1_28276', 1, 1)
end
if choix_sorts_28276 == 2 then
pUnit:RegisterEvent('spell2_28276', 1, 1)
end
if choix_sorts_28276 == 3 then
pUnit:RegisterEvent('spell3_28276', 1, 1)
end
end

function mob28276_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28276', math.random(1500, 3000), 1)
end

function mob28276_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28276_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28276_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28276, 1, 'mob28276_Action')
RegisterUnitEvent(28276, 2, 'mob28276_Leave')
RegisterUnitEvent(28276, 3, 'mob28276_Kill')
RegisterUnitEvent(28276, 4, 'mob28276_Die')
